import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '@/views/login/LoginView.vue'
import HomeView from '@/views/Home/HomeView.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 默认进入登录界面
   {
    path: '/',
    redirect: '/login'
   },
   {
    path: '/login',
    name: 'login',
    component: LoginView
   },
   {
    path: '/home',
    name: 'home',
    component: HomeView
   },
   {
   }
  ]
})

export default router
